package org.example.shortlink.admin.common.enums.errorcode;

/**
 * @author czj
 */
public enum UserErrorCode implements IErrorCode{

    USER_NULL("b00200","用户记录不存在"),

    USER_NAME_EXIST("b00201","用户名已存在"),

    USER_EXIST("b00202","用户已存在"),

    USER_SAVE_ERROR("b00203","用户记录新增失败"),

    USER_LOGIN("b00204","用户已登录"),

    USER_UN_LOGIN("b00205","用户未登录");

    private final String code;

    private final String message;

    UserErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
